package com.zxb.promote.com.zxb.promote.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;
/**
 * @Package: com.zxb.promote.com.zxb.promote.config
 * @ClassName: WebSocketConfig
 * @Author: zhangxubin
 * @Description: 开启WebSocket支持
 * @Date: 2019/5/17 10:50
 */
@Configuration
public class WebSocketConfig {
    @Bean
    public ServerEndpointExporter serverEndpointExporter(){
        return  new ServerEndpointExporter();
    }

}
